package com.kingdee.eas.custom.myinterface.app;

import javax.ejb.*;
import java.rmi.RemoteException;
import com.kingdee.bos.*;
import com.kingdee.bos.util.BOSObjectType;
import com.kingdee.bos.metadata.IMetaDataPK;
import com.kingdee.bos.metadata.rule.RuleExecutor;
import com.kingdee.bos.metadata.MetaDataPK;
//import com.kingdee.bos.metadata.entity.EntityViewInfo;
import com.kingdee.bos.framework.ejb.AbstractEntityControllerBean;
import com.kingdee.bos.framework.ejb.AbstractBizControllerBean;
//import com.kingdee.bos.dao.IObjectPK;
import com.kingdee.bos.dao.IObjectValue;
import com.kingdee.bos.dao.IObjectCollection;
import com.kingdee.bos.service.ServiceContext;
import com.kingdee.bos.service.IServiceContext;
import com.kingdee.eas.framework.Result;
import com.kingdee.eas.framework.LineResult;
import com.kingdee.eas.framework.exception.EASMultiException;
import com.kingdee.bos.dao.ormapping.ObjectUuidPK;

import java.lang.String;
import java.math.BigDecimal;



public abstract class AbstractSyncPaymentFacadeControllerBean extends AbstractBizControllerBean implements SyncPaymentFacadeController
{
    protected AbstractSyncPaymentFacadeControllerBean()
    {
    }

    protected BOSObjectType getBOSType()
    {
        return new BOSObjectType("5C6BF99F");
    }

    public String syncPaymentBillAddNew(Context ctx, String billNumber, BigDecimal prePayment, BigDecimal realPayment, String contractNumber, String contractName, String costAccountNumber, String costAccountName, String projectNumber, String projectName, String companyNumber, String companyName, String supplierNumber, String supplierName, String currency, String summary) throws BOSException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("da4b1184-4a1f-4e47-b94d-486ef7657832"), new Object[]{ctx, billNumber, prePayment, realPayment, contractNumber, contractName, costAccountNumber, costAccountName, projectNumber, projectName, companyNumber, companyName, supplierNumber, supplierName, currency, summary});
            invokeServiceBefore(svcCtx);
            String retValue = (String)_syncPaymentBillAddNew(ctx, billNumber, prePayment, realPayment, contractNumber, contractName, costAccountNumber, costAccountName, projectNumber, projectName, companyNumber, companyName, supplierNumber, supplierName, currency, summary);
            svcCtx.setMethodReturnValue(retValue);
            invokeServiceAfter(svcCtx);
            return retValue;
        } catch (BOSException ex) {
            this.setRollbackOnly();
            throw ex;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected String _syncPaymentBillAddNew(Context ctx, String billNumber, BigDecimal prePayment, BigDecimal realPayment, String contractNumber, String contractName, String costAccountNumber, String costAccountName, String projectNumber, String projectName, String companyNumber, String companyName, String supplierNumber, String supplierName, String currency, String summary) throws BOSException
    {    	
        return null;
    }

}